<div class="category">
	<?php
		require_once('lib/sql.utils.php');
		require_once('lib/same_book.php');
		$sql_utils = new SqlUtils();
		$categoryDetailId = $_GET['categoryDetailId'];
		$result = $sql_utils->getRows('SELECT * FROM categorydetails
										JOIN categories ON categories.categoryId = categorydetails.categoryId
										WHERE categoryDetailId = '.$categoryDetailId);
		echo '<p>'.$result[0]['categoryDetailName'].'</p>';
		echo '<p>'.'Thuộc danh mục : '.'<a onclick="getCategory('.$result[0]['categoryId'].')">'.$result[0]['categoryName'].'</a></p>';
		echo '<div class="category-description">';
			echo $result[0]['categoryDetailDescription'];
		echo '</div>';
		echo '<button class="back-btn" onclick="prevContent()"></button>';
		$samebook = new sameBook('SELECT * FROM books WHERE categoryDetailId = '.$categoryDetailId,
									'Các cuốn sách thuộc tủ sách : '.$result[0]['categoryDetailName'],'same-book');
		$samebook->display();
		unset($result);
		unset($samebook);
	?>
</div>